using System;
using System.ComponentModel;
using System.Linq.Expressions;

namespace Columbus
{
    public class PropertyChangedNotifier : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged = (e, a) => { };

        public void NotifyPropertyChanged<T>(Expression<Func<T>> property)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(property.GetPropertyName()));
        }
    }
}